#include<stdio.h>
int main()
{
	int arr[10] ;
	int i = 0;
	for (i = 0; i <= 9; i++)
	{
		scanf_s("%d", &arr[i]);
		
	}
	int max=arr[0];
	int j;
	for (j = 1; j <= 9; j++)
	{
		
		if (arr[j] >max)
			max=arr[j] ;

	}
	printf("%d", max);
	return 0;

}








